<?php
// 查课程名与表单中相同的
    require_once("./DButil.php");
    $word=$_REQUEST["word"];
    // echo $word;
    $sql="select courseid,coursename,status from t_course where courseName='{$word}' ";
    $arr=query($sql)[0];
    header("Content-Type:application/json;charset=utf-8");
    echo json_encode($arr);
?>